package spring6.iocxml.auto;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.testng.annotations.Test;
import spring6.iocxml.auto.controller.UserController;

public class TestUser {
    @Test
    public static void TestUser(){
        ApplicationContext context =
                new ClassPathXmlApplicationContext("bean-auto.xml");
        UserController userController = context.getBean("controller",UserController.class);
        userController.addUser();
    }
}
